<?php
namespace app\admin\validate;

use think\Validate;

class ShouyePartner extends Validate
{
    protected $rule = [
        'name' => 'require|max:25',
        'url' 	=> 'max:50',
        'thumb' => 'require'
    ];

    protected $message = [
        'name.require' => '请输入合作伙伴名称',
        'name.max'     => '名称最多不能超过25个字符',
        'thumb.require' => '缩略图必须上传',
        'url'           => '不能超过50个字符'
    ];
}
